<template>
<div>
    <el-table :data="dataList">
        <el-table-column sortable prop="userId" label="姓名"></el-table-column>
        <el-table-column sortable prop="userAccount" label="性别"></el-table-column>
        <el-table-column sortable prop="userPassword" label="年龄"></el-table-column>
    </el-table>
</div>
</template>

<script>
import axios from 'axios';
export default {
    data() {
        return {
            dataList: []
        };
    },
    methods: {
        testAxios() {
            axios.post("http://localhost:9527/demo/user/queryUserByPage", { "pageSize": 10, "pageNo": 1, "userAccount": "account2" }).then(data => {
                this.dataList = data.data.returnPage.records;


                // console.log("===================",data.data)

            })

        }
    },
    created(){
        this.testAxios();
    }
};
</script>

<style scoped></style>
